#pragma once
#include <string>

namespace dbother
{
	template<typename T>
	T getpyszm(T& str)
	{
		int fg = 1;
		T res;
		for (size_t i = 0; i < str.size(); i++) {
			bool pp = (str[i] > 'z' || str[i] < 'a');
			if (fg && ((str[i] <= 'z' && str[i] >= 'a') || (str[i] <= 'Z' && str[i] >= 'A'))) {
				res += str[i];
				fg = 0;
			}
			else if (fg == 0 && ((str[i] > 'Z' && str[i] < 'a') || str[i] < 'A' || str[i] > 'z')) {
				res += '\'';
				fg = 1;
			}
		}
		return res;
	}
}